Optimal. Leaf size=58 \[ -\frac{\sqrt{a} (b c-a d) \tan ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{a}}\right )}{b^{5/2}}+\frac{x (b c-a d)}{b^2}+\frac{d x^3}{3 b} \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.101515, antiderivative size = 58, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 20, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.15 \[ -\frac{\sqrt{a} (b c-a d) \tan ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{a}}\right )}{b^{5/2}}+\frac{x (b c-a d)}{b^2}+\frac{d x^3}{3 b} \]
Antiderivative was successfully verified.
[In] Int[(x^2*(c + d*x^2))/(a + b*x^2),x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [A] time = 16.1229, size = 49, normalized size = 0.84 \[ \frac{\sqrt{a} \left (a d - b c\right ) \operatorname{atan}{\left (\frac{\sqrt{b} x}{\sqrt{a}} \right )}}{b^{\frac{5}{2}}} + \frac{d x^{3}}{3 b} - \frac{x \left (a d - b c\right )}{b^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate(x**2*(d*x**2+c)/(b*x**2+a),x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.0703124, size = 57, normalized size = 0.98 \[ \frac{\sqrt{a} (a d-b c) \tan ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{a}}\right )}{b^{5/2}}+\frac{x (b c-a d)}{b^2}+\frac{d x^3}{3 b} \]
Antiderivative was successfully verified.
[In] Integrate[(x^2*(c + d*x^2))/(a + b*x^2),x]
[Out]
_______________________________________________________________________________________
Maple [A] time = 0.005, size = 68, normalized size = 1.2 \[{\frac{d{x}^{3}}{3\,b}}-{\frac{adx}{{b}^{2}}}+{\frac{cx}{b}}+{\frac{{a}^{2}d}{{b}^{2}}\arctan \left ({bx{\frac{1}{\sqrt{ab}}}} \right ){\frac{1}{\sqrt{ab}}}}-{\frac{ac}{b}\arctan \left ({bx{\frac{1}{\sqrt{ab}}}} \right ){\frac{1}{\sqrt{ab}}}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int(x^2*(d*x^2+c)/(b*x^2+a),x)
[Out]
_______________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \[ \text{Exception raised: ValueError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((d*x^2 + c)*x^2/(b*x^2 + a),x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.246286, size = 1, normalized size = 0.02 \[ \left [\frac{2 \, b d x^{3} - 3 \,{\left (b c - a d\right )} \sqrt{-\frac{a}{b}} \log \left (\frac{b x^{2} + 2 \, b x \sqrt{-\frac{a}{b}} - a}{b x^{2} + a}\right ) + 6 \,{\left (b c - a d\right )} x}{6 \, b^{2}}, \frac{b d x^{3} - 3 \,{\left (b c - a d\right )} \sqrt{\frac{a}{b}} \arctan \left (\frac{x}{\sqrt{\frac{a}{b}}}\right ) + 3 \,{\left (b c - a d\right )} x}{3 \, b^{2}}\right ] \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((d*x^2 + c)*x^2/(b*x^2 + a),x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [A] time = 1.78137, size = 90, normalized size = 1.55 \[ - \frac{\sqrt{- \frac{a}{b^{5}}} \left (a d - b c\right ) \log{\left (- b^{2} \sqrt{- \frac{a}{b^{5}}} + x \right )}}{2} + \frac{\sqrt{- \frac{a}{b^{5}}} \left (a d - b c\right ) \log{\left (b^{2} \sqrt{- \frac{a}{b^{5}}} + x \right )}}{2} + \frac{d x^{3}}{3 b} - \frac{x \left (a d - b c\right )}{b^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(x**2*(d*x**2+c)/(b*x**2+a),x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [A] time = 0.227073, size = 78, normalized size = 1.34 \[ -\frac{{\left (a b c - a^{2} d\right )} \arctan \left (\frac{b x}{\sqrt{a b}}\right )}{\sqrt{a b} b^{2}} + \frac{b^{2} d x^{3} + 3 \, b^{2} c x - 3 \, a b d x}{3 \, b^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((d*x^2 + c)*x^2/(b*x^2 + a),x, algorithm="giac")
[Out]